package com.assessment.utils;

import java.util.Arrays;
import java.util.List;

public class Constant {

    public static final Integer CODE_ERROR = -1;
    public static final Integer CODE_SUCCESS = 200;
    public static final Integer BATCH_COUNT = 50;

    public static final String[] ALLOW_URL = new String[]{"/ws/**","/error", "/", "/toLogin", "/login", "/loginError",  "/logout"};

    public static final String LOGIN_SUCCESS = "登录成功";
    public static final String LOGIN_FAILED = "登录失败！请检查用户名和密码";
    public static final String COMMON = "common";
    public static final String SUBMIT = "提交";
    public static final String SAVE = "保存";
    public static final String PWD_HEAD = "Hebut@";

    public static final String TABLE_SUCCESS = "查询成功";
    public static final String TABLE_FAILED = "查询失败！请重试";

    public static final String SAVE_SUCCESS = "添加成功！";
    public static final String SAVE_FAILED = "添加失败！请重试";

    public static final String UPLOAD_SUCCESS = "导入成功！";
    public static final String UPLOAD_FAILED = "导入失败！请重试";

    public static final String UPDATE_SUCCESS = "更新成功！";
    public static final String UPDATE_FAILED = "更新失败！请重试";

    public static final String DELETE_SUCCESS = "删除成功!";
    public static final String DELETE_FAILED = "删除失败！请重试";

    public static final String COM_SUCCESS = "计算成功！";
    public static final String COM_FAILED = "计算失败！请重试";

    public static final List<String> DOWNLOAD_TYPES = Arrays.asList("dep", "role", "peo");
    public static final String DOWNLOAD_ROLE = "role";
    public static final String DOWNLOAD_DEP = "dep";
    public static final String DOWNLOAD_PEO = "peo";


}

